﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity.Package
{
    public class PackReturnDetailAccount
    {
        //通用结构
        private PackHead packHead;
        public PackHead PackHead
        {
            get { return packHead; }
            set { packHead = value; }
        }

        private string tradeCode="";
        public string TradeCode
        {
            get { return tradeCode; }
            set { tradeCode = value; }
        }
        private string responseCode="";
        public string ResponseCode
        {
            get { return responseCode; }
            set { responseCode = value; }
        }
        private string strokeCount="";
        public string StrokeCount
        {
            get { return strokeCount; }
            set { strokeCount = value; }
        }
        private string payMoneyHJ="";
        public string PayMoneyHJ
        {
            get { return payMoneyHJ; }
            set { payMoneyHJ = value; }
        }

        public PackReturnDetailAccount()
        { }

        //public PackReturnDetailAccount(PackHead pkHead, string valueTradeCode, string valueResponseCode, string valueStrokeCount, string valuePayMoneyHJ)
        //{
        //    this.packHead = pkHead;
        //    this.tradeCode = valueTradeCode;
        //    this.responseCode = valueResponseCode;
        //    this.strokeCount = valueStrokeCount;
        //    this.payMoneyHJ = valuePayMoneyHJ;
        //}

        public override string ToString()
        {
            string packBody = tradeCode + "|" + responseCode + "|" + strokeCount + "|" + payMoneyHJ;
            if (packHead == null)
                return packBody;
            else
                return packHead.ToString() + packBody;
        }
    }
}
